package behavior.strategy;

/**
 * Created by lie on 2017/11/2.
 * 上下文，暴露给外界，用来操作策略——持有一个策略类的引用，最终给客户端用的
 * 但具体选用哪个策略，还是交给客户端{@link TestGuGu}那边判断的
 */
public class Context implements FightingStrategy{
    private FightingStrategy fs;

    public Context(FightingStrategy fs) {
        this.fs = fs;
    }

    @Override
    public void fighting() {
        fs.fighting();
    }
}
